package com.fram.service.api.v1.android;

import java.util.List;

import com.fram.bean.admin.android.goods.request.GoodsAndroidListRequest;
import com.fram.bean.admin.android.goods.request.GoodsAndroidRequest;
import com.fram.bean.admin.android.goods.request.GoodsSalesRequest;
import com.fram.bean.admin.android.goods.response.GoodsAndroidListResponse;
import com.fram.bean.admin.android.goods.response.GoodsSalesResponse;
import com.fram.bean.sys.PageBean;
import com.fram.common.exception.ProException;
import com.fram.entity.ProjectGoods;
import com.fram.entity.ProjectGoodsPrice;
import com.github.pagehelper.PageInfo;

public interface GoodsAndroidService {
	// 增加商品
	public Long add(GoodsAndroidRequest request) throws ProException;

	// 查询
	public PageInfo<GoodsAndroidListResponse> list(PageBean<GoodsAndroidListRequest> request) throws ProException;

	// 修改
	public void update(GoodsAndroidRequest request) throws ProException;

	// 详情
	public ProjectGoods detail(Long id) throws ProException;

	// 规格详情
	public ProjectGoodsPrice priceDetail(Long id) throws ProException;

	// 修改规格
	public void priceUpdate(ProjectGoodsPrice request) throws ProException;

	// 添加规格
	public void priceAdd(List<ProjectGoodsPrice> request) throws ProException;

	// 批量修改规格
	public void priceUpdateList(List<ProjectGoodsPrice> request) throws ProException;

	// 商品 销售状况
	public List<GoodsSalesResponse> sales(GoodsSalesRequest request) throws ProException;
}
